#ifndef __CONTROL_H
#define __CONTROL_H

#include <stdint.h>
#include <stdio.h>

enum
{
    PUMP_FREE = 0x00, 
    PUMP_PUMPING = 0x01,    
    PUMP_PUMPTIMEOUT = 0x02,  
    PUMP_PUMPWAIT = 0x03,   
    PUMP_INKSPILL = 0x04,                    
};

typedef struct
{
    uint8_t pump_status;
    uint8_t pump_input;// 
    uint8_t pump_out;// 
    uint32_t pump_timeout;// 
} pump_info_t;

#define MAX_PUMP_INFO 8
extern pump_info_t g_pump_info[MAX_PUMP_INFO];
extern uint8_t g_pump_spill;

extern void control_pumpControl(void);
extern void control_pumpReset(void);
#endif
